#pragma once
#include "DayTimeTable.h"
#include "CurrentTimes.h"

class TimeTable
{
protected:
    DayTimeTable m_table[7];
    UINT m_week;
public:
    TimeTable(void);
    ~TimeTable(void);

    DayTimeTable* Table(int day) { return &m_table[day]; }
    UINT Week() { return m_week; }
    void Week(UINT week) { m_week = week; }
    int ReadConfig(const BYTE* config);
    int SaveConfig(BYTE* config);
    UserStatus HasToStop(SYSTEMTIME& st);
    UserStatus HasToStop(int day, CurrentTimes& ct);
    int TimeRemainsSchedule(SYSTEMTIME& st);
};
